package xian.woniuxy.service;

import xian.woniuxy.entity.Role;
import xian.woniuxy.entity.User;

import java.util.List;

/**
 * @author gao
 * @date 2023/07/03 11:29:58
 */
public interface RoleService {
    int save(Role role);

    int delete(Integer roleId);

    int update(Role role);

    Role findOne(Integer roleId);

    List<Role> findAll();

    int distributePermissions(Integer rid, List<Integer> permissionIds);

    List<Role> findByUserId(Integer userId);
}
